package com.project.easy.common.util.exception.captcha;

import com.project.easy.common.util.enums.exception.BusinessExceptionEnums;
import com.project.easy.common.util.exception.BaseException;
import com.project.easy.common.util.exception.print.PrintException;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/10/24 20:53
 * @description: 业务验证
 */
public class CaptchaException extends BaseException {
    /**
     * Constructs a new runtime exception with {@code null} as its
     * detail message.  The cause is not initialized, and may subsequently be
     * initialized by a call to {@link #initCause}.
     */
    public CaptchaException(Throwable e) {
        super(e, BusinessExceptionEnums.BUSINESS_EXCEPTION_CREATE_CAPTCHA.getParentException().getCode(), BusinessExceptionEnums.BUSINESS_EXCEPTION_CREATE_CAPTCHA.getParentException().getName(),
                BusinessExceptionEnums.BUSINESS_EXCEPTION_CREATE_CAPTCHA.getCode(), BusinessExceptionEnums.BUSINESS_EXCEPTION_CREATE_CAPTCHA.getName());
        PrintException.print(e);
    }
}
